const express = require('express');
const router = express.Router();
const groupbuyController = require('../controllers/groupbuyController');

// 获取拼团状态
router.get('/groupbuy/status', groupbuyController.getGroupBuyStatus);

// 发起拼团
// router.post('/groupbuy/start', groupbuyController.startGroupBuy);

// 加入拼团
// router.post('/groupbuy/join', groupbuyController.joinGroupBuy);

// 获取拼团详情 (按商品ID查询)
router.post('/detail', groupbuyController.getGroupBuyDetail);

module.exports = router; 